package com.kern.academic.repository;

import com.kern.academic.entity.XRights;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * Created by caoshi at 7:42 2021-07-13
 */
public interface IRightsRepository extends JpaRepository<XRights, String>, JpaSpecificationExecutor<XRights> {

//     @Query(value = "select * from t_rights where id in (?1)", nativeQuery = true)
    @Query(value = "from XRights where id in (?1)")
    List<XRights> findAllByIdIn(List<String> ids);



}
